home *** CD-ROM | disk | FTP | other *** search
- global gAlphabetExist, objalphabetbtn, gSelLine
-
- on mouseDown
- set theLeft to the left of sprite 33
- set theTop to the top of sprite 33
- repeat while the stillDown
- if rollOver(33) then
- set thecolumn to (getAt(clickLoc(), 1) - theLeft) / 17
- set theline to (getAt(clickLoc(), 2) - theTop) / 18
- set theAlphabet to (theline * 27) + thecolumn + 1
- set firstAlphabetLine to getAt(gAlphabetExist, theAlphabet)
- if firstAlphabetLine = 0 then
- set the visible of sprite 33 to 0
- set the visible of sprite 33 to 1
- updateStage()
- else
- set al to thecolumn * 17
- set at to theline * 18
- set theSrcRect to al & "," & at & "," & al + 17 & "," & at + 17
- set theDestRect to theLeft + al & "," & theTop + at & "," & theLeft + al + 17 & "," & theTop + at + 17
- blitPictDrawScreen(objalphabetbtn, theSrcRect, theDestRect, "copy", 0, 0)
- end if
- next repeat
- end if
- set the visible of sprite 33 to 0
- set the visible of sprite 33 to 1
- updateStage()
- end repeat
- set the visible of sprite 33 to 0
- set the visible of sprite 33 to 1
- updateStage()
- if voidp(theAlphabet) then
- exit
- end if
- if rollOver(33) then
- set firstAlphabetLine to getAt(gAlphabetExist, theAlphabet)
- if firstAlphabetLine <> 0 then
- set gSelLine to firstAlphabetLine
- set the foreColor of cast 34 to getAt(gColor, 4)
- showKeyword(gSelLine, 1)
- drawkeywords(gSelLine)
- end if
- end if
- end
-